#include <sys/types.h>
#include <signal.h>
#include <string>
#include <iostream>

int main(int argc, char* argv[])
{
    if(argc != 3)
    {
        std::cout << "error" << std::endl;
        exit(1);
    }

    pid_t pid = std::stoi(argv[2]);
    int sig = std::stoi(argv[1]);

    int n = kill(pid,sig);
    if(n == 0)
        std::cout << "send success" << std::endl;
    return 0;
}